package com.elitedatai.mchtest.manage.model.entity;


import com.elitedatai.mchtest.common.model.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "manage_device")
@Entity
public class DeviceEntity extends BaseEntity implements Serializable {

    @Column(name = "device_sn")
    private String deviceSn = "";

    @Column(name = "device_name")
    private String deviceName = "undefined";

    @Column(name = "workspace_id")
    private String workspaceId = "";

    @Column(name = "device_type")
    private Integer deviceType = -1;

    @Column(name = "sub_type")
    private Integer subType = -1;

    @Column(name = "domain")
    private Integer domain = -1;

    @Column(name = "version")
    private String version = "";

    @Column(name = "device_index")
    private String deviceIndex = "";

    @Column(name = "child_sn")
    private String childSn = "";

    @Column(name = "device_desc")
    private String deviceDesc = "";

    @Column(name = "url_normal")
    private String urlNormal = "";

    @Column(name = "url_select")
    private String urlSelect = "";

    @Column(name = "user_id")
    private String userId = "";

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "firmware_version")
    private String firmwareVersion = "";

    @Column(name = "compatible_status",columnDefinition = "default true")
    private Boolean compatibleStatus = true;

    @Column(name = "bound_status")
    private Boolean boundStatus = false;

    @Column(name = "bound_time")
    private Long boundTime;

    @Column(name = "login_time")
    private Long loginTime;

}